package com.company.app.action;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;

/**
 * The Class AbstractBaseAction.
 */
public abstract class AbstractBaseAction<T> implements ActionBean {

	/** The context. */
	private ActionBeanContext context;
	
	private T model;

	/*
	 * (non-Javadoc)
	 * 
	 * @see net.sourceforge.stripes.action.ActionBean#getContext()
	 */
	@Override
	public ActionBeanContext getContext() {
		return context;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * net.sourceforge.stripes.action.ActionBean#setContext(net.sourceforge.
	 * stripes.action.ActionBeanContext)
	 */
	@Override
	public void setContext(ActionBeanContext context) {
		this.context = context;
	}

	/**
	 * Gets the model.
	 *
	 * @return the model
	 */
	public T getModel() {
		return model;
	}

	/**
	 * Sets the model.
	 *
	 * @param model the new model
	 */
	public void setModel(T model) {
		this.model = model;
	}
	
}
